package cn.virens.web.components.weixin.handler;

import cn.virens.web.components.weixin.handler.base.AbstractWxMpMessageHandler;
import cn.virens.web.components.weixin.handler.base.WxMpMessageUser;
import cn.virens.web.components.weixin.session.VirWxSession;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;

public class UnsubscribeMessageHandler extends AbstractWxMpMessageHandler {
	@Override
	protected WxMpXmlOutMessage handle(WxMpXmlMessage wxMpXmlMessage, WxMpMessageUser wxMpMessageUser) {
		VirWxSession session = wxMpMessageUser.getSession();

		if (session != null) {
			logger.debug("test sesseion ->" + session.getAttribute("test"));
		} else {
			logger.error("session 不存在!");
		}

		return super.handle(wxMpXmlMessage, wxMpMessageUser);
	}
}
